
public class Estate extends Property{
	private String myName = super.getMyName();
	private int House=0;
	
	public Estate(String name, int Location, int Price, int payment1, int payment2, int payment3, int payment4, int payment5, int payment6, int payment7){
		super(name,Location,Price, payment1, payment2, payment3, payment4, payment5, payment6, payment7);
		if(Location == 1 || Location == 3){
			this.setColor("brown");
		}
		else if(Location == 6 || Location == 8 || Location == 9){
			this.setColor("ltblue");
		}
		else if(Location == 11 || Location == 13 || Location == 14){
			this.setColor("pink");
		}
		else if(Location == 16 || Location == 18 || Location == 19){
			this.setColor("orange");
		}
		else if(Location == 21 || Location == 23 || Location == 24){
			this.setColor("red");
		}
		else if(Location == 26 || Location == 27 || Location == 29){
			this.setColor("yellow");
		}
		else if(Location == 31 || Location == 32 || Location == 34){
			this.setColor("green");
		}
		else{
			this.setColor("blue");
		}
	}
	
	public void setMyName(String myName) {
		this.myName = myName;
	}
	
	public String getMyName() {
		return myName;
	}

	public void setHouse(int house) {
		House = house;
	}

	public int getHouse() {
		return House;
	}
}
